<template>
    <div class="base-layout">
        <router-view />
        <van-tabbar v-model="active" route>
            <van-tabbar-item icon="home-o" to="/main/home"
                >首页</van-tabbar-item
            >

            <van-tabbar-item icon="search" to="/main/add">添加</van-tabbar-item>

            <van-tabbar-item icon="friends-o" to="/main/mine"
                >我的</van-tabbar-item
            >
        </van-tabbar>
    </div>
</template>

<script>
export default {
    data() {
        return {
            active: 1,
        };
    },
};
</script>

<style lang="less" scoped></style>
